package org.example.enums;

/**
 * 任务错误码
 */
public enum ETaskErrCode {

    CHECKHEALTH(101,"健康检查异常"),
    FILECOPY(105,"文件复制异常"),
    DISKCHECK(110,"磁盘检查异常"),
    FILEUNZIP(115,"文件解压异常"),
    FILECONFIG(120,"文件配置异常"),
    ENVCONFIG(125,"环境配置异常"),
    UNINSTALL(130,"服务卸载异常"),
    CLEAN(135,"目录清理异常");

    private int errCode;
    public String errorMsg;

    ETaskErrCode(int errCode,String errorMsg){
        this.errCode = errCode;
        this.errorMsg = errorMsg;
    }

    public int getErrCode() {
        return errCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
